// 上面这个代码处理过度动画（默认加上不用管）
document.addEventListener("DOMContentLoaded", () => {
  setTimeout(() => {
    document.body.classList.add("sidenav-pinned");
    document.body.classList.add("ready");
  }, 200);
});

// 每个页面都会导入该js 统一的设置写这里即可
const toastBox = document.querySelector("#myToast");
const toast = new bootstrap.Toast(toastBox);
const tip = (msg) => {
  toastBox.querySelector(".toast-body").innerHTML = msg;
  toast.show();
};
